package hibernate.p;

import hibernate.roomSystem.Room;

public class RoomPrice{
	
	private Room room;
	private double priceFull;
	private Unit unitFull;
	private double pricePart;
	private Unit unitPart;
	
	public void setRoom(Room room){this.room=room;}
	
	public Room getRoom(){return room;}
	
	public void setPriceFull(double price){this.priceFull=price;}
	
	public double getPriceFull(){return priceFull;}
	
	public void setUnitFull(String unit){this.unitFull=Unit.parseUnit(unit);}
	
	public String getUnitFull(){return unitFull == null ? "" : unitFull.toString();}
	
	public void setPricePart(double price){this.pricePart=price;}
	
	public double getPricePart(){return pricePart;}
	
	public void setUnitPart(String unit){this.unitPart=Unit.parseUnit(unit);}
	
	public String getUnitPart(){return unitPart == null ? "" : unitPart.toString();}
}
